import React from 'react';
import { Bubble } from 'weaver-mobile';
import { getLabel } from '../util/common';

export default class ReqNoRight extends React.Component{
    componentDidMount() {
        document.title = getLabel(504627,'无权限');
    }
    render(){
        const { isSecNoRight,isDelete,isTest} = this.props;
        let msg = getLabel(2012,'对不起，您暂时没有权限！');
        if(isSecNoRight == '1') {
            msg = getLabel(501082,'对不起，您的人员密级不足以查看该内容');
        }else if(isDelete === true){
            msg = getLabel(501606,'对不起，该流程已删除');
        }else if(isTest === true){
            msg = getLabel(522931,'当前流程为测试状态，暂无法显示！');
        }
        return (
            <div style={{width:'100%', height:'360px'}}>
                <Bubble.Bubble
                    type={12}
                    propmt={msg}
                />
            </div>
        )
    }
}